package com.qianxx.base.request;

public class ServiceError {

	public static void setErrorToastMsg(RequestBean bean) {
		if (bean == null || bean.getErrCode() == null) {
			return;
		}
		int code = bean.getErrCode();
		switch (code) {
		case 1001:
			bean.setMessage("连接超时，请检查网络");
			break;
		case 1003:
			bean.setMessage("访问服务器错误");
			break;
		case 500:
			bean.setMessage("请求服务器失败，请检查网络");
		case 3000:
			bean.setMessage("您在其他地方已登录，请重新登录");
			break;
		case 3001:
			bean.setMessage("您在其他地方已登录，请重新登录");
			break;
		}
	}

}
